// 2013-8-31下午01:50:03  net.betou.trade.entity.main.Picture.java

package net.betou.trade.entity.main;

import java.util.Date;

import net.betou.trade.entity.main.base.BasePicture;

/**
 * 
 * @author 叶装装
 */
public class Picture extends BasePicture{

	private static final long serialVersionUID = 1L;
	
	public void init( ){
		this.setDescription( null );
		this.setUploadDate( new Date( ) );
	}
	
	public String getShortPath( ){
		String path = getPath( );
		
		int index = path.lastIndexOf( "/" );
		
		if( index != -1 ){
			return path.substring( index + 1, path.length( ) );
		}
		
		return path;
	}
}
